<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="recallId" name="recallId" th:value="${recall.recallId}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">产品：</label>
								<div class="col-sm-8">
									<select id="productId" name="productId" th:value="${recall.productId}" class="form-control">

									</select>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">批次：</label>
								<div class="col-sm-8">
									<input id="productNo" name="productNo" th:value="${recall.productNo}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">规格：</label>
								<div class="col-sm-8">
									<input id="specifications" name="specifications" th:value="${recall.specifications}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">数量：</label>
								<div class="col-sm-8">
									<input id="number" name="number" th:value="${recall.number}" class="form-control" type="number">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">来源：</label>
								<div class="col-sm-8">
									<input id="source" name="source" th:value="${recall.source}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">召回情况：</label>
								<div class="col-sm-8">
									<input id="recallSituation" name="recallSituation" th:value="${recall.recallSituation}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">召回原因：</label>
								<div class="col-sm-8">
									<div id="recallReasonDiv" name="recallReasonDiv">

									</div>
									<input id="recallReason" name="recallReason" th:value="${recall.recallReason}" class="form-control" type="hidden">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">整改方案：</label>
								<div class="col-sm-8">
									<input id="rectificationPlan" name="rectificationPlan" th:value="${recall.rectificationPlan}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">风控：</label>
								<div class="col-sm-8">
									<input id="riskManagement" name="riskManagement" th:value="${recall.riskManagement}" class="form-control" type="text">
								</div>
							</div>
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createBy" name="createBy" th:value="${recall.createBy}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createDate" name="createDate" th:value="${recall.createDate}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="state" name="state" th:value="${recall.state}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:inline="javascript">
		var productId = [[${recall.productId}]]
		var recallReasonHtml = [[${recall.recallReason}]]

        var E = window.wangEditor
        var recallReasonDiv = new E('#recallReasonDiv')
        recallReasonDiv.customConfig.menus = [
            'head',  // 标题
            'bold',  // 粗体
            'fontSize',  // 字号
            'fontName',  // 字体
            'italic',  // 斜体
            'underline',  // 下划线
            'strikeThrough',  // 删除线
            'foreColor',  // 文字颜色
            'backColor',  // 背景颜色
            'link',  // 插入链接
            'list',  // 列表
            'justify',  // 对齐方式
//            'quote',  // 引用
            'image',  // 插入图片
            'table',  // 表格
        ]
        recallReasonDiv.customConfig.uploadImgServer = getProjectName()+'/common/sysFile/uploadOss'
        recallReasonDiv.create()
        recallReasonDiv.txt.html(recallReasonHtml)
        function setRecallReason() {
            var log = recallReasonDiv.txt.html()
            $("#recallReason").val(log)
        }
	</script>
	<script type="text/javascript" th:src="@{/js/appjs/product/recall/edit.js}" src="/js/appjs/product/recall/edit.js">
	</script>
</body>
</html>
